/*
 * 文件名：RecommendedWorksDaoImpl.java
 * 版权：Copyright 2007-2016 517na Tech. Co. Ltd. All Rights Reserved. 
 * 描述： RecommendedWorksDaoImpl.java
 * 修改人：yanshu
 * 修改时间：2016年1月26日
 * 修改内容：新增
 */
package com.feichuang.chineseWoodCarving.dao.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.feichuang.chineseWoodCarving.dao.IRecommendedWorksDao;
import com.feichuang.chineseWoodCarving.model.MPagerRequestVo;
import com.feichuang.chineseWoodCarving.model.MRecommendedWorksVo;

/**
 * TODO 添加类的一句话简单描述.
 * <p>
 * TODO 详细描述
 * <p>
 * TODO 示例代码
 * 
 * <pre>
 * </pre>
 * 
 * @author yanshu
 */
@Component("recommendedWorksDao")
public class RecommendedWorksDaoImpl extends BaseDaoImpl implements IRecommendedWorksDao {

    /**
     * {@inheritDoc}.
     */
    @Override
    public List<MRecommendedWorksVo> selectMRecommendedWorksVoForPage(MPagerRequestVo<MRecommendedWorksVo> pageRequest) {
        // TODO Auto-generated method stub
        return this.sqlSession.selectList("com.feichuang.chineseWoodCarving.dao.IRecommendedWorksDao.selectMRecommendedWorksVoForPage", pageRequest);
    }

    /**
     * {@inheritDoc}.
     */
    @Override
    public int selectMRecommendedWorksVoCount(MPagerRequestVo<MRecommendedWorksVo> pageRequest) {
        return this.sqlSession.selectOne("com.feichuang.chineseWoodCarving.dao.IRecommendedWorksDao.selectMRecommendedWorksVoCount", pageRequest);
    }

    /**
     * {@inheritDoc}.
     */
    @Override
    public boolean insertMRecommendedWorksVo(MRecommendedWorksVo paramIn) {
        // TODO Auto-generated method stub
        this.sqlSession.insert("com.feichuang.chineseWoodCarving.dao.IRecommendedWorksDao.insertMRecommendedWorksVo", paramIn);
        return true;
    }

    /**
     * {@inheritDoc}.
     */
    @Override
    public boolean updateMRecommendedWorksVo(MRecommendedWorksVo paramIn) {
        // TODO Auto-generated method stub
        this.sqlSession.update("com.feichuang.chineseWoodCarving.dao.IRecommendedWorksDao.updateMRecommendedWorksVo", paramIn);
        return true;
    }

    /**
     * {@inheritDoc}.
     */
    @Override
    public boolean deleteMRecommendedWorksVo(MRecommendedWorksVo paramIn) {
        // TODO Auto-generated method stub
        this.sqlSession.update("com.feichuang.chineseWoodCarving.dao.IRecommendedWorksDao.deleteMRecommendedWorksVo", paramIn);
        return true;
    }

}
